<?php

class MyDB{
	static $db;
	function __construct(){
		
	}

	function __destruct(){

	}

	public static function __callStatic($name, $arguments){

	}
	
	public static function connect(){
		 
		MyDB::$db  = ADONewConnection('mysql'); # eg. 'mysql' or 'oci8' 
		if (!MyDB::$db ) {		
			die("Connection failed");   
			return false;
		}
		MyDB::$db->debug = false;
		if(!MyDB::$db ->Connect(_HOST_, _USER_, _PASS_, _DBNAME_))
		{
			die("Connection failed");   
		}
		return MyDB::$db;
	}



}

?>